<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Playbook - ScenarioLayout.Sizing</title>
    <link rel="stylesheet" type="text/css" href="https://playbook-ui.github.io/playbook-ios/all.css" media="all" />
</head>
<body>
    <header>
        <a href="https://playbook-ui.github.io/playbook-ios">
            <strong>
                Playbook
            </strong>
            <span>Documentation</span>
        </a>
    </header>

    <!--
    <form class="search">
        <input type="search" placeholder="Search" />
    </form>
    -->

    <nav>
        <div class="wrapper">
            <h2>On This Page</h2>
            <ol><li><a href="#relationships">Relationships</a><ul><li><a href="#relationships">Member Of</a></li><li><a href="#relationships">Conforms To</a></li></ul></li><li><a href="#initializers">Initializers</a><ul><li class="initializer"><a href="#scenariolayout.sizing.init(integerliteral:)">init(integer​Literal:​)</a></li><li class="initializer"><a href="#scenariolayout.sizing.init(floatliteral:)">init(float​Literal:​)</a></li></ul></li><li><a href="#enumeration cases">Enumeration Cases</a><ul><li class="case"><a href="#scenariolayout.sizing.compressed">compressed</a></li><li class="case"><a href="#scenariolayout.sizing.fill">fill</a></li><li class="case"><a href="#scenariolayout.sizing.fixed">fixed</a></li></ul></li></ol>
        </div>
    </nav>

    <main>
        <article>
            <h1>
    <small>Enumeration</small>
    <code class="name">Scenario​Layout.​Sizing</code>
</h1>

<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">enum</span> <span class="type">Sizing</span>: <span class="type">Equatable</span>, <span class="type">ExpressibleByIntegerLiteral</span>, <span class="type">ExpressibleByFloatLiteral</span>  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A sizing strategy for the horizontal or vertical dimensions.</p>

</div>
<section id="relationships">
    <h2 hidden>Relationships</h2>
        <figure>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.47.1 (20210417.1919)
 -->
<!-- Pages: 1 -->
<svg width="1072pt" height="242pt"
 viewBox="0.00 0.00 1071.87 241.73" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 237.73)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-237.73 1067.87,-237.73 1067.87,4 -4,4"/>
<!-- ScenarioLayout.Sizing -->
<g id="node1" class="node enumeration current">
<title>ScenarioLayout.Sizing</title>
<g id="a_node1"><a xlink:href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout_Sizing" xlink:title="ScenarioLayout.Sizing">
<path fill="none" stroke="black" stroke-width="3" d="M529.47,-143.64C529.47,-143.64 337.47,-143.64 337.47,-143.64 331.47,-143.64 325.47,-137.64 325.47,-131.64 325.47,-131.64 325.47,-119.64 325.47,-119.64 325.47,-113.64 331.47,-107.64 337.47,-107.64 337.47,-107.64 529.47,-107.64 529.47,-107.64 535.47,-107.64 541.47,-113.64 541.47,-119.64 541.47,-119.64 541.47,-131.64 541.47,-131.64 541.47,-137.64 535.47,-143.64 529.47,-143.64"/>
<text text-anchor="middle" x="433.47" y="-121.94" font-family="Menlo" font-size="14.00">ScenarioLayout.Sizing</text>
</a>
</g>
</g>
<!-- ExpressibleByIntegerLiteral -->
<g id="node2" class="node unknown">
<title>ExpressibleByIntegerLiteral</title>
<path fill="none" stroke="black" d="M1051.87,-161.31C1051.87,-161.31 836.87,-161.31 836.87,-161.31 830.87,-161.31 824.87,-155.31 824.87,-149.31 824.87,-149.31 824.87,-137.31 824.87,-137.31 824.87,-131.31 830.87,-125.31 836.87,-125.31 836.87,-125.31 1051.87,-125.31 1051.87,-125.31 1057.87,-125.31 1063.87,-131.31 1063.87,-137.31 1063.87,-137.31 1063.87,-149.31 1063.87,-149.31 1063.87,-155.31 1057.87,-161.31 1051.87,-161.31"/>
<text text-anchor="middle" x="944.37" y="-139.61" font-family="Menlo" font-size="14.00">ExpressibleByIntegerLiteral</text>
</g>
<!-- ScenarioLayout.Sizing&#45;&gt;ExpressibleByIntegerLiteral -->
<g id="edge1" class="edge conformsTo">
<title>ScenarioLayout.Sizing&#45;&gt;ExpressibleByIntegerLiteral</title>
<path fill="none" stroke="black" d="M541.5,-129.37C621.14,-132.13 729.83,-135.89 814.25,-138.81"/>
<polygon fill="black" stroke="black" points="814.3,-142.31 824.42,-139.16 814.55,-135.31 814.3,-142.31"/>
</g>
<!-- Equatable -->
<g id="node3" class="node unknown">
<title>Equatable</title>
<path fill="none" stroke="black" d="M345.9,-36C345.9,-36 153.9,-36 153.9,-36 147.9,-36 141.9,-30 141.9,-24 141.9,-24 141.9,-12 141.9,-12 141.9,-6 147.9,0 153.9,0 153.9,0 345.9,0 345.9,0 351.9,0 357.9,-6 357.9,-12 357.9,-12 357.9,-24 357.9,-24 357.9,-30 351.9,-36 345.9,-36"/>
<text text-anchor="middle" x="249.9" y="-14.3" font-family="Menlo" font-size="14.00">Equatable</text>
</g>
<!-- ScenarioLayout.Sizing&#45;&gt;Equatable -->
<g id="edge3" class="edge conformsTo">
<title>ScenarioLayout.Sizing&#45;&gt;Equatable</title>
<path fill="none" stroke="black" d="M402.74,-107.62C371.63,-89.38 323.4,-61.1 289.46,-41.2"/>
<polygon fill="black" stroke="black" points="291.12,-38.11 280.72,-36.08 287.58,-44.15 291.12,-38.11"/>
</g>
<!-- ExpressibleByFloatLiteral -->
<g id="node4" class="node unknown">
<title>ExpressibleByFloatLiteral</title>
<path fill="none" stroke="black" d="M211,-233.73C211,-233.73 12,-233.73 12,-233.73 6,-233.73 0,-227.73 0,-221.73 0,-221.73 0,-209.73 0,-209.73 0,-203.73 6,-197.73 12,-197.73 12,-197.73 211,-197.73 211,-197.73 217,-197.73 223,-203.73 223,-209.73 223,-209.73 223,-221.73 223,-221.73 223,-227.73 217,-233.73 211,-233.73"/>
<text text-anchor="middle" x="111.5" y="-212.03" font-family="Menlo" font-size="14.00">ExpressibleByFloatLiteral</text>
</g>
<!-- ScenarioLayout.Sizing&#45;&gt;ExpressibleByFloatLiteral -->
<g id="edge2" class="edge conformsTo">
<title>ScenarioLayout.Sizing&#45;&gt;ExpressibleByFloatLiteral</title>
<path fill="none" stroke="black" d="M369.08,-143.65C316.2,-158.45 241.24,-179.43 185.81,-194.94"/>
<polygon fill="black" stroke="black" points="184.73,-191.61 176.04,-197.67 186.62,-198.35 184.73,-191.61"/>
</g>
</g>
</svg>


    <figcaption hidden>Inheritance graph for ScenarioLayout.Sizing.</figcaption>
</figure>
        <h3>Member Of</h3>
<dl>
    <dt class="structure"><code><a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout">ScenarioLayout</a></code></dt>
<dd><p>Represents how the component should be laid out.</p>
</dd>
</dl>
<h3>Conforms To</h3>
<dl>
    <dt class="unknown"><code>Equatable</code></dt>
<dt class="unknown"><code>ExpressibleByFloatLiteral</code></dt>
<dt class="unknown"><code>ExpressibleByIntegerLiteral</code></dt>
</dl>
</section>
    <section id="initializers">
        <h2>Initializers</h2>

        <div role="article" class="initializer" id="scenariolayout.sizing.init(integerliteral:)">
    <h3>
        <code><a href="#scenariolayout.sizing.init(integerliteral:)">init(integer​Literal:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(<span class="variable">integerLiteral</span> <span class="variable">value</span>: <span class="type">Int</span>)  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a <code>fixed</code> sizing with the specified value converted to a <code>CGFloat</code>.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>value</th>
    <td><code class="type">Int</code></td>
    <td><p>The actual value of <code>fixed</code> sizing.</p>
</td>
</tr>
  </tbody>
</table>
</div>
<div role="article" class="initializer" id="scenariolayout.sizing.init(floatliteral:)">
    <h3>
        <code><a href="#scenariolayout.sizing.init(floatliteral:)">init(float​Literal:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(<span class="variable">floatLiteral</span> <span class="variable">value</span>: <span class="type">Float</span>)  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a <code>fixed</code> sizing with the specified value converted to a <code>CGFloat</code>.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>value</th>
    <td><code class="type">Float</code></td>
    <td><p>The actual value of <code>fixed</code> sizing.</p>
</td>
</tr>
  </tbody>
</table>
</div>
    </section>
    <section id="enumeration cases">
        <h2>Enumeration Cases</h2>

        <div role="article" class="case" id="scenariolayout.sizing.compressed">
    <h3>
        <code><a href="#scenariolayout.sizing.compressed">compressed</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">case</span> <span class="variable">compressed</span></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Compresses to the intrinsic size of the component.</p>

</div>
</div>
<div role="article" class="case" id="scenariolayout.sizing.fill">
    <h3>
        <code><a href="#scenariolayout.sizing.fill">fill</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">case</span> <span class="variable">fill</span></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Fill to the size of the canvas on which to layout the component.</p>

</div>
</div>
<div role="article" class="case" id="scenariolayout.sizing.fixed">
    <h3>
        <code><a href="#scenariolayout.sizing.fixed">fixed</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">case</span> <span class="variable">fixed</span>(<span class="type">CGFloat</span>) </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Layout with given fixed size.
Note: There are cases that to compressed to
the size of the canvas on which to layout it when it can't be displayed
on the UI.</p>

</div>
</div>
    </section>



        </article>
    </main>

    <footer>
        <p>
    Generated on <time datetime="2021-08-25T19:01:54+0900">August 25, 2021</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-rc.1</span>.
</p>
    </footer>
</body>
</html>
